package com.ys.erp.entity.data.bean;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @author lwj
 * @date 2025/7/17
 */
    
@Data
@TableName(value = "t_cat_photo_history")
public class CatPhotoHistory {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 宠物编号
     */
    @TableField(value = "cat_code")
    private String catCode;

    /**
     * 照片集
     */
    @TableField(value = "photos")
    private String photos;

    /**
     * 上传时间
     */
    @TableField(value = "upload_time")
    private LocalDateTime uploadTime;

    /**
     * 员工id
     */
    @TableField(value = "emp_id")
    private Long empId;

    /**
     * 员工名字
     */
    @TableField(value = "emp_name")
    private String empName;

    @TableField(value = "version")
    @Version
    private Integer version;

    @TableField(value = "create_time")
    private LocalDateTime createTime;

    @TableField(value = "update_time", update = "now()")
    private LocalDateTime updateTime;
}